import { useRoutes } from "react-router-dom";
import DemoHooks from '../pages/案例/14.Hooks/Hooks';
import UseEffect from "../pages/案例/14.Hooks/useEffect/useEffect"
const Routes =()=>{
    return useRoutes([
        {
            path:'/DemoHooks',
            element:<DemoHooks/>,
            children:[
                {
                    path:'UseEffect',
                    element:<UseEffect />
                }
            ]
        }
    ])
}
export default Routes